var app = require('http').createServer();
var io = require('socket.io')(app);
var PORT = 8081;

app.listen(PORT);

io.on('connection', function (socket) {
	socket.on("clentSendMsg",function(data){
		console.log('当前客户端数量'+io.eio.clientsCount)
		io.sockets.emit('serverMsg',data)
	})
})